package com.aaa.operations.feign;

import com.aaa.common.entity.ResultData;
import com.aaa.common.entity.Room;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ：陈路遥
 * @date ：Created in 2020/7/29 20:28
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "ROOMSERVICE",fallback = FallBack.class)
public interface IRoomService {
    @ResponseBody
    @RequestMapping("/room/getAllRoom")
    ResultData getAllRoom(@RequestParam("pageSize") Integer pageSize, @RequestParam("pageNum") Integer pageNum);



    @RequestMapping("/room/addRoom")
    ResultData addRoom(Room room);

    @RequestMapping("/room/updateRoom")
    ResultData updateRoom(Room room);

    @RequestMapping("/room/deleteRoom")
    ResultData deleteRoom(Room room);
}
